import reactRefresh from '@vitejs/plugin-react-refresh'
import { defineConfig } from 'vite'

const path = require('path')

export default defineConfig({
    build: {
        lib: {
            entry: path.resolve(__dirname, 'src/index.tsx'),
            name: 'HelloWorld'
        },
        rollupOptions: {
            external: ['react', 'react-dom']
        }
    }
})